﻿// ViewModelBase.cs
//
using System.ComponentModel;

namespace Falafel.ViewModel {

    /// <summary>
    /// Base ViewModel class
    /// </summary>
    public abstract class ViewModelBase : INotifyPropertyChanged {
        public event PropertyChangedEventHandler PropertyChanged;
        
        protected void RaisePropertyChanged(string propertyName) {
            if (PropertyChanged != null) {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }
}